<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/struts-tags" prefix="s"%>

<html>
<head>
<s:head />
<title>Bar detail</title>
</head>
<body>

	Bar:
	<br />
	<br />


	<form action="saveBar" method="POST">	
			<table border="1">
				<tr>
					<td><s:hidden name="bar.id" /> <b>Name: &nbsp;</b> 
					<s:textfield name="bar.name" theme="simple" required="true"/></td>
				</tr>
				<tr>
					<td>
						<table border="1">
							<tr>
								<td><b>Street Name: </b></td>
								<td><b><s:textfield name="bar.address.name"
											theme="simple" /> </b></td>
								<td><b>Street Number: </b></td>
								<td><b><s:textfield name="bar.address.number"
											theme="simple" /> </b></td>
							</tr>
							<tr>
								<td><b>Zip Code: </b></td>
								<td><b><s:textfield name="bar.address.zipCode"
											theme="simple" /> </b></td>
							</tr>
							<tr>
								<td><b>Coordinates: </b></td>
								<td><b>lat: &nbsp;<s:textfield
											name="bar.address.coordinates.latitud" theme="simple" />
										long: &nbsp;<s:textfield
											name="bar.address.coordinates.longitude" theme="simple" />
								</b></td>
							</tr>
						</table> 
					</td>
				</tr>
			</table>
		<input type="submit" value="Save"/>
	</form>


</body>
</html>
